
// 导入axios工具包
import instance from '../../../utils/axios.js'

// 登入接口
function getLogin({mobile,code}){
  return instance({
     url:'/v1_0/authorizations',
     method:'post',
     data:{
     mobile,
     code
     },
   })
 }
 // 导出接口
 export { getLogin }


 import { getToken } from '../../../utils/token.js'

 function getUserInfo(){

   return instance({
     url:'/v1_0/user/profile',
     method:'get',
     headers:{
      Authorization: `Bearer ${getToken().token}`
     }
   })
 }

 export {getUserInfo}
